//
//  HUD.h
//  Molian
//
//  Created by 胡津 on 15/2/5.
//  Copyright (c) 2015年 xiaocan. All rights reserved.
//
#define GMD_SPINNER_LINE_WIDTH  fmaxf(self.frame.size.width * 0.025, 1.f)
#define GMD_SPINNER_FRAME       CGRectMake(40.0f, 40.0f, 40.0f, 40.0f)

#import <UIKit/UIKit.h>
#import "NYSegmentedControl.h"
#import "RatingBar.h"


typedef void(^CancelBlock)(void);
typedef void(^ConfirmBlock)(void);

typedef void(^SegmentedConfirmBlock)(void);



@interface HUD : UIView
{
    UIToolbar*toolbar;
    UIView*View_screen;
    NYSegmentedControl * SegmentedIdentity;
    NYSegmentedControl * SegmentedIdentitySex;
    
    UIView * View_chest;

    UIViewController*vcController;
    
}

@property (nonatomic, copy) CancelBlock Cancel;
@property (nonatomic, copy) ConfirmBlock Confirm;
@property (nonatomic, copy) SegmentedConfirmBlock SegmentedConfirm;
@property (nonatomic, strong) CAShapeLayer *backgroundLayer;
@property (nonatomic, assign) CGFloat lineWidth;
@property (nonatomic, strong) UITextField *textField;
@property (nonatomic, strong) RatingBar *ratingBar;


-(UIView *)HUDImage :(UIImage *)image Title:(NSString *)title Content:(NSString *)content CANCEL:(NSString *)Cancel Confirm:(NSString *)confirm;
-(UIView*)HUDContent:(NSString*)content ToHeadImage:(NSURL*)url CANCEL:(NSString*)Cancel Confirm:(NSString*)confirm;

+(void)shakeAnimationForView:(UIView *) view;//抖动动画

-(UIView*)HUDTitle:(NSString*)title TextStr:(NSString*)textstr CANCEL:(NSString*)Cancel Confirm:(NSString*)confirm;

//提示框
+(void)Prompt:(NSString *)prompt;


-(UIView*)Screening :(NSString*)Cancel Confirm:(NSString*)confirm;

- (void)start;

- (void)stop;

+ (HUD *)setOnViewWithTitle:(NSString *)title animated:(BOOL)animated;

+ (BOOL)hideFromViewAnimated:(BOOL)animated;

//评价
-(UIView*)HUDEvaluationTitle:(NSString*)title CANCEL:(NSString*)Cancel Confirm:(NSString*)confirm;

//皮肤选择器
-(UIView*)TheskinChoose:(UIViewController*)vc;


@end
